package com.firewolf.spring.actions;

import com.firewolf.spring.entities.User;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

/**
 * Action
 * @author lx
 *
 */
public class UserAction extends ActionSupport implements ModelDriven<User> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1865767066303455921L;
	private User user = new User();
	
	public String login(){
		System.out.println(user);
		return "home";
	}

	@Override
	public User getModel() {
		// TODO Auto-generated method stub
		return user;
	}
}
